package com.ufaud.ais.sys.entity;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

import com.ufaud.ais.pub.entity.BaseEntity;

@Entity(name="user")
@Deprecated
public class UserEntity extends BaseEntity<Long> {

	private Long id;
	private String user_code;
	private String user_name;
	private String user_password;
	private String user_type;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getUser_code() {
		return user_code;
	}

	public void setUser_code(String userCode) {
		user_code = userCode;
	}

	public String getUser_name() {
		return user_name;
	}

	public void setUser_name(String userName) {
		user_name = userName;
	}

	public String getUser_password() {
		return user_password;
	}

	public void setUser_password(String userPassword) {
		user_password = userPassword;
	}

	public String getUser_type() {
		return user_type;
	}

	public void setUser_type(String userType) {
		user_type = userType;
	}

	@Override
	@Transient
	public String getPropertyNameOfId() {
		return "id";
	}

}
